Integrand size = 20, antiderivative size = 1147 \[ \int \frac {x^2}{\left (a+b \tan \left (c+d \sqrt {x}\right )\right )^2} \, dx=-\frac {4 i b^2 x^{5/2}}{\left (a^2+b^2\right )^2 d}+\frac {4 b^2 x^{5/2}}{(a+i b) (i a+b)^2 d \left (i a-b+(i a+b) e^{2 i \left (c+d \sqrt {x}\right )}\right )}+\frac {x^3}{3 (a-i b)^2}+\frac {4 b x^3}{3 (i a-b) (a-i b)^2}-\frac {4 b^2 x^3}{3 \left (a^2+b^2\right )^2}+\frac {10 b^2 x^2 \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {4 b x^{5/2} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d}-\frac {4 i b^2 x^{5/2} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d}-\frac {20 i b^2 x^{3/2} \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^3}+\frac {10 b x^2 \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^2}-\frac {10 b^2 x^2 \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {30 b^2 x \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^4}+\frac {20 b x^{3/2} \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d^3}-\frac {20 i b^2 x^{3/2} \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^3}+\frac {30 i b^2 \sqrt {x} \operatorname {PolyLog}\left (4,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^5}-\frac {30 b x \operatorname {PolyLog}\left (4,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^4}+\frac {30 b^2 x \operatorname {PolyLog}\left (4,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^4}-\frac {15 b^2 \operatorname {PolyLog}\left (5,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^6}-\frac {30 b \sqrt {x} \operatorname {PolyLog}\left (5,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d^5}+\frac {30 i b^2 \sqrt {x} \operatorname {PolyLog}\left (5,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^5}+\frac {15 b \operatorname {PolyLog}\left (6,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^6}-\frac {15 b^2 \operatorname {PolyLog}\left (6,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^6} \]
[Out]
Time = 2.72 (sec) , antiderivative size = 1147, normalized size of antiderivative = 1.00, number of steps used = 28, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {3832, 3815, 2216, 2215, 2221, 2611, 6744, 2320, 6724, 2222} \[ \int \frac {x^2}{\left (a+b \tan \left (c+d \sqrt {x}\right )\right )^2} \, dx=\frac {4 b x^3}{3 (i a-b) (a-i b)^2}+\frac {x^3}{3 (a-i b)^2}-\frac {4 b^2 x^3}{3 \left (a^2+b^2\right )^2}+\frac {4 b \log \left (\frac {e^{2 i \left (c+d \sqrt {x}\right )} (a-i b)}{a+i b}+1\right ) x^{5/2}}{(a-i b)^2 (a+i b) d}-\frac {4 i b^2 \log \left (\frac {e^{2 i \left (c+d \sqrt {x}\right )} (a-i b)}{a+i b}+1\right ) x^{5/2}}{\left (a^2+b^2\right )^2 d}-\frac {4 i b^2 x^{5/2}}{\left (a^2+b^2\right )^2 d}+\frac {4 b^2 x^{5/2}}{(a+i b) (i a+b)^2 d \left (i a+(i a+b) e^{2 i \left (c+d \sqrt {x}\right )}-b\right )}+\frac {10 b^2 \log \left (\frac {e^{2 i \left (c+d \sqrt {x}\right )} (a-i b)}{a+i b}+1\right ) x^2}{\left (a^2+b^2\right )^2 d^2}+\frac {10 b \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right ) x^2}{(i a-b) (a-i b)^2 d^2}-\frac {10 b^2 \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right ) x^2}{\left (a^2+b^2\right )^2 d^2}-\frac {20 i b^2 \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right ) x^{3/2}}{\left (a^2+b^2\right )^2 d^3}+\frac {20 b \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right ) x^{3/2}}{(a-i b)^2 (a+i b) d^3}-\frac {20 i b^2 \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right ) x^{3/2}}{\left (a^2+b^2\right )^2 d^3}+\frac {30 b^2 \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right ) x}{\left (a^2+b^2\right )^2 d^4}-\frac {30 b \operatorname {PolyLog}\left (4,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right ) x}{(i a-b) (a-i b)^2 d^4}+\frac {30 b^2 \operatorname {PolyLog}\left (4,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right ) x}{\left (a^2+b^2\right )^2 d^4}+\frac {30 i b^2 \operatorname {PolyLog}\left (4,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right ) \sqrt {x}}{\left (a^2+b^2\right )^2 d^5}-\frac {30 b \operatorname {PolyLog}\left (5,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right ) \sqrt {x}}{(a-i b)^2 (a+i b) d^5}+\frac {30 i b^2 \operatorname {PolyLog}\left (5,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right ) \sqrt {x}}{\left (a^2+b^2\right )^2 d^5}-\frac {15 b^2 \operatorname {PolyLog}\left (5,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^6}+\frac {15 b \operatorname {PolyLog}\left (6,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^6}-\frac {15 b^2 \operatorname {PolyLog}\left (6,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^6} \]
[In]
[Out]
Rule 2215
Rule 2216
Rule 2221
Rule 2222
Rule 2320
Rule 2611
Rule 3815
Rule 3832
Rule 6724
Rule 6744
Rubi steps \begin{align*} \text {integral}& = 2 \text {Subst}\left (\int \frac {x^5}{(a+b \tan (c+d x))^2} \, dx,x,\sqrt {x}\right ) \\ & = 2 \text {Subst}\left (\int \left (\frac {x^5}{(a-i b)^2}-\frac {4 b^2 x^5}{(i a+b)^2 \left (i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}\right )^2}+\frac {4 b x^5}{(a-i b)^2 \left (i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}\right )}\right ) \, dx,x,\sqrt {x}\right ) \\ & = \frac {x^3}{3 (a-i b)^2}+\frac {(8 b) \text {Subst}\left (\int \frac {x^5}{i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}} \, dx,x,\sqrt {x}\right )}{(a-i b)^2}-\frac {\left (8 b^2\right ) \text {Subst}\left (\int \frac {x^5}{\left (i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}\right )^2} \, dx,x,\sqrt {x}\right )}{(i a+b)^2} \\ & = \frac {x^3}{3 (a-i b)^2}+\frac {4 b x^3}{3 (i a-b) (a-i b)^2}+\frac {\left (8 b^2\right ) \text {Subst}\left (\int \frac {x^5}{i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}} \, dx,x,\sqrt {x}\right )}{(i a-b) (a-i b)^2}-\frac {(8 b) \text {Subst}\left (\int \frac {e^{2 i c+2 i d x} x^5}{i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}} \, dx,x,\sqrt {x}\right )}{a^2+b^2}-\frac {\left (8 b^2\right ) \text {Subst}\left (\int \frac {e^{2 i c+2 i d x} x^5}{\left (i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}\right )^2} \, dx,x,\sqrt {x}\right )}{a^2+b^2} \\ & = -\frac {4 b^2 x^{5/2}}{(a-i b)^2 (a+i b) d \left (i a-b+(i a+b) e^{2 i \left (c+d \sqrt {x}\right )}\right )}+\frac {x^3}{3 (a-i b)^2}+\frac {4 b x^3}{3 (i a-b) (a-i b)^2}-\frac {4 b^2 x^3}{3 \left (a^2+b^2\right )^2}+\frac {4 b x^{5/2} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d}-\frac {\left (8 b^2\right ) \text {Subst}\left (\int \frac {e^{2 i c+2 i d x} x^5}{i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}} \, dx,x,\sqrt {x}\right )}{(a+i b)^2 (i a+b)}-\frac {(20 b) \text {Subst}\left (\int x^4 \log \left (1+\frac {\left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}}{1+\frac {i b}{a}}\right ) \, dx,x,\sqrt {x}\right )}{(a-i b)^2 (a+i b) d}+\frac {\left (20 b^2\right ) \text {Subst}\left (\int \frac {x^4}{i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}} \, dx,x,\sqrt {x}\right )}{(a-i b)^2 (a+i b) d} \\ & = -\frac {4 i b^2 x^{5/2}}{\left (a^2+b^2\right )^2 d}-\frac {4 b^2 x^{5/2}}{(a-i b)^2 (a+i b) d \left (i a-b+(i a+b) e^{2 i \left (c+d \sqrt {x}\right )}\right )}+\frac {x^3}{3 (a-i b)^2}+\frac {4 b x^3}{3 (i a-b) (a-i b)^2}-\frac {4 b^2 x^3}{3 \left (a^2+b^2\right )^2}+\frac {4 b x^{5/2} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d}-\frac {4 i b^2 x^{5/2} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d}+\frac {10 b x^2 \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^2}-\frac {(40 b) \text {Subst}\left (\int x^3 \operatorname {PolyLog}\left (2,-\frac {\left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}}{1+\frac {i b}{a}}\right ) \, dx,x,\sqrt {x}\right )}{(i a-b) (a-i b)^2 d^2}-\frac {\left (20 b^2\right ) \text {Subst}\left (\int \frac {e^{2 i c+2 i d x} x^4}{i a \left (1+\frac {i b}{a}\right )+i a \left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}} \, dx,x,\sqrt {x}\right )}{(a-i b) (a+i b)^2 d}+\frac {\left (20 i b^2\right ) \text {Subst}\left (\int x^4 \log \left (1+\frac {\left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}}{1+\frac {i b}{a}}\right ) \, dx,x,\sqrt {x}\right )}{\left (a^2+b^2\right )^2 d} \\ & = -\frac {4 i b^2 x^{5/2}}{\left (a^2+b^2\right )^2 d}-\frac {4 b^2 x^{5/2}}{(a-i b)^2 (a+i b) d \left (i a-b+(i a+b) e^{2 i \left (c+d \sqrt {x}\right )}\right )}+\frac {x^3}{3 (a-i b)^2}+\frac {4 b x^3}{3 (i a-b) (a-i b)^2}-\frac {4 b^2 x^3}{3 \left (a^2+b^2\right )^2}+\frac {10 b^2 x^2 \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {4 b x^{5/2} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d}-\frac {4 i b^2 x^{5/2} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d}+\frac {10 b x^2 \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^2}-\frac {10 b^2 x^2 \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {20 b x^{3/2} \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d^3}-\frac {(60 b) \text {Subst}\left (\int x^2 \operatorname {PolyLog}\left (3,-\frac {\left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}}{1+\frac {i b}{a}}\right ) \, dx,x,\sqrt {x}\right )}{(a-i b)^2 (a+i b) d^3}-\frac {\left (40 b^2\right ) \text {Subst}\left (\int x^3 \log \left (1+\frac {\left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}}{1+\frac {i b}{a}}\right ) \, dx,x,\sqrt {x}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {\left (40 b^2\right ) \text {Subst}\left (\int x^3 \operatorname {PolyLog}\left (2,-\frac {\left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}}{1+\frac {i b}{a}}\right ) \, dx,x,\sqrt {x}\right )}{\left (a^2+b^2\right )^2 d^2} \\ & = -\frac {4 i b^2 x^{5/2}}{\left (a^2+b^2\right )^2 d}-\frac {4 b^2 x^{5/2}}{(a-i b)^2 (a+i b) d \left (i a-b+(i a+b) e^{2 i \left (c+d \sqrt {x}\right )}\right )}+\frac {x^3}{3 (a-i b)^2}+\frac {4 b x^3}{3 (i a-b) (a-i b)^2}-\frac {4 b^2 x^3}{3 \left (a^2+b^2\right )^2}+\frac {10 b^2 x^2 \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {4 b x^{5/2} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d}-\frac {4 i b^2 x^{5/2} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d}-\frac {20 i b^2 x^{3/2} \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^3}+\frac {10 b x^2 \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^2}-\frac {10 b^2 x^2 \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {20 b x^{3/2} \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d^3}-\frac {20 i b^2 x^{3/2} \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^3}-\frac {30 b x \operatorname {PolyLog}\left (4,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^4}+\frac {(60 b) \text {Subst}\left (\int x \operatorname {PolyLog}\left (4,-\frac {\left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}}{1+\frac {i b}{a}}\right ) \, dx,x,\sqrt {x}\right )}{(i a-b) (a-i b)^2 d^4}+\frac {\left (60 i b^2\right ) \text {Subst}\left (\int x^2 \operatorname {PolyLog}\left (2,-\frac {\left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}}{1+\frac {i b}{a}}\right ) \, dx,x,\sqrt {x}\right )}{\left (a^2+b^2\right )^2 d^3}+\frac {\left (60 i b^2\right ) \text {Subst}\left (\int x^2 \operatorname {PolyLog}\left (3,-\frac {\left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}}{1+\frac {i b}{a}}\right ) \, dx,x,\sqrt {x}\right )}{\left (a^2+b^2\right )^2 d^3} \\ & = -\frac {4 i b^2 x^{5/2}}{\left (a^2+b^2\right )^2 d}-\frac {4 b^2 x^{5/2}}{(a-i b)^2 (a+i b) d \left (i a-b+(i a+b) e^{2 i \left (c+d \sqrt {x}\right )}\right )}+\frac {x^3}{3 (a-i b)^2}+\frac {4 b x^3}{3 (i a-b) (a-i b)^2}-\frac {4 b^2 x^3}{3 \left (a^2+b^2\right )^2}+\frac {10 b^2 x^2 \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {4 b x^{5/2} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d}-\frac {4 i b^2 x^{5/2} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d}-\frac {20 i b^2 x^{3/2} \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^3}+\frac {10 b x^2 \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^2}-\frac {10 b^2 x^2 \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {30 b^2 x \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^4}+\frac {20 b x^{3/2} \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d^3}-\frac {20 i b^2 x^{3/2} \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^3}-\frac {30 b x \operatorname {PolyLog}\left (4,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^4}+\frac {30 b^2 x \operatorname {PolyLog}\left (4,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^4}-\frac {30 b \sqrt {x} \operatorname {PolyLog}\left (5,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d^5}+\frac {(30 b) \text {Subst}\left (\int \operatorname {PolyLog}\left (5,-\frac {\left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}}{1+\frac {i b}{a}}\right ) \, dx,x,\sqrt {x}\right )}{(a-i b)^2 (a+i b) d^5}-\frac {\left (60 b^2\right ) \text {Subst}\left (\int x \operatorname {PolyLog}\left (3,-\frac {\left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}}{1+\frac {i b}{a}}\right ) \, dx,x,\sqrt {x}\right )}{\left (a^2+b^2\right )^2 d^4}-\frac {\left (60 b^2\right ) \text {Subst}\left (\int x \operatorname {PolyLog}\left (4,-\frac {\left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}}{1+\frac {i b}{a}}\right ) \, dx,x,\sqrt {x}\right )}{\left (a^2+b^2\right )^2 d^4} \\ & = -\frac {4 i b^2 x^{5/2}}{\left (a^2+b^2\right )^2 d}-\frac {4 b^2 x^{5/2}}{(a-i b)^2 (a+i b) d \left (i a-b+(i a+b) e^{2 i \left (c+d \sqrt {x}\right )}\right )}+\frac {x^3}{3 (a-i b)^2}+\frac {4 b x^3}{3 (i a-b) (a-i b)^2}-\frac {4 b^2 x^3}{3 \left (a^2+b^2\right )^2}+\frac {10 b^2 x^2 \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {4 b x^{5/2} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d}-\frac {4 i b^2 x^{5/2} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d}-\frac {20 i b^2 x^{3/2} \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^3}+\frac {10 b x^2 \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^2}-\frac {10 b^2 x^2 \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {30 b^2 x \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^4}+\frac {20 b x^{3/2} \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d^3}-\frac {20 i b^2 x^{3/2} \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^3}+\frac {30 i b^2 \sqrt {x} \operatorname {PolyLog}\left (4,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^5}-\frac {30 b x \operatorname {PolyLog}\left (4,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^4}+\frac {30 b^2 x \operatorname {PolyLog}\left (4,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^4}-\frac {30 b \sqrt {x} \operatorname {PolyLog}\left (5,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d^5}+\frac {30 i b^2 \sqrt {x} \operatorname {PolyLog}\left (5,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^5}+\frac {(15 b) \text {Subst}\left (\int \frac {\operatorname {PolyLog}\left (5,-\frac {(a-i b) x}{a+i b}\right )}{x} \, dx,x,e^{2 i \left (c+d \sqrt {x}\right )}\right )}{(i a-b) (a-i b)^2 d^6}-\frac {\left (30 i b^2\right ) \text {Subst}\left (\int \operatorname {PolyLog}\left (4,-\frac {\left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}}{1+\frac {i b}{a}}\right ) \, dx,x,\sqrt {x}\right )}{\left (a^2+b^2\right )^2 d^5}-\frac {\left (30 i b^2\right ) \text {Subst}\left (\int \operatorname {PolyLog}\left (5,-\frac {\left (1-\frac {i b}{a}\right ) e^{2 i c+2 i d x}}{1+\frac {i b}{a}}\right ) \, dx,x,\sqrt {x}\right )}{\left (a^2+b^2\right )^2 d^5} \\ & = -\frac {4 i b^2 x^{5/2}}{\left (a^2+b^2\right )^2 d}-\frac {4 b^2 x^{5/2}}{(a-i b)^2 (a+i b) d \left (i a-b+(i a+b) e^{2 i \left (c+d \sqrt {x}\right )}\right )}+\frac {x^3}{3 (a-i b)^2}+\frac {4 b x^3}{3 (i a-b) (a-i b)^2}-\frac {4 b^2 x^3}{3 \left (a^2+b^2\right )^2}+\frac {10 b^2 x^2 \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {4 b x^{5/2} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d}-\frac {4 i b^2 x^{5/2} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d}-\frac {20 i b^2 x^{3/2} \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^3}+\frac {10 b x^2 \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^2}-\frac {10 b^2 x^2 \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {30 b^2 x \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^4}+\frac {20 b x^{3/2} \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d^3}-\frac {20 i b^2 x^{3/2} \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^3}+\frac {30 i b^2 \sqrt {x} \operatorname {PolyLog}\left (4,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^5}-\frac {30 b x \operatorname {PolyLog}\left (4,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^4}+\frac {30 b^2 x \operatorname {PolyLog}\left (4,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^4}-\frac {30 b \sqrt {x} \operatorname {PolyLog}\left (5,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d^5}+\frac {30 i b^2 \sqrt {x} \operatorname {PolyLog}\left (5,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^5}+\frac {15 b \operatorname {PolyLog}\left (6,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^6}-\frac {\left (15 b^2\right ) \text {Subst}\left (\int \frac {\operatorname {PolyLog}\left (4,-\frac {(a-i b) x}{a+i b}\right )}{x} \, dx,x,e^{2 i \left (c+d \sqrt {x}\right )}\right )}{\left (a^2+b^2\right )^2 d^6}-\frac {\left (15 b^2\right ) \text {Subst}\left (\int \frac {\operatorname {PolyLog}\left (5,-\frac {(a-i b) x}{a+i b}\right )}{x} \, dx,x,e^{2 i \left (c+d \sqrt {x}\right )}\right )}{\left (a^2+b^2\right )^2 d^6} \\ & = -\frac {4 i b^2 x^{5/2}}{\left (a^2+b^2\right )^2 d}-\frac {4 b^2 x^{5/2}}{(a-i b)^2 (a+i b) d \left (i a-b+(i a+b) e^{2 i \left (c+d \sqrt {x}\right )}\right )}+\frac {x^3}{3 (a-i b)^2}+\frac {4 b x^3}{3 (i a-b) (a-i b)^2}-\frac {4 b^2 x^3}{3 \left (a^2+b^2\right )^2}+\frac {10 b^2 x^2 \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {4 b x^{5/2} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d}-\frac {4 i b^2 x^{5/2} \log \left (1+\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d}-\frac {20 i b^2 x^{3/2} \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^3}+\frac {10 b x^2 \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^2}-\frac {10 b^2 x^2 \operatorname {PolyLog}\left (2,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^2}+\frac {30 b^2 x \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^4}+\frac {20 b x^{3/2} \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d^3}-\frac {20 i b^2 x^{3/2} \operatorname {PolyLog}\left (3,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^3}+\frac {30 i b^2 \sqrt {x} \operatorname {PolyLog}\left (4,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^5}-\frac {30 b x \operatorname {PolyLog}\left (4,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^4}+\frac {30 b^2 x \operatorname {PolyLog}\left (4,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^4}-\frac {15 b^2 \operatorname {PolyLog}\left (5,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^6}-\frac {30 b \sqrt {x} \operatorname {PolyLog}\left (5,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(a-i b)^2 (a+i b) d^5}+\frac {30 i b^2 \sqrt {x} \operatorname {PolyLog}\left (5,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^5}+\frac {15 b \operatorname {PolyLog}\left (6,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{(i a-b) (a-i b)^2 d^6}-\frac {15 b^2 \operatorname {PolyLog}\left (6,-\frac {(a-i b) e^{2 i \left (c+d \sqrt {x}\right )}}{a+i b}\right )}{\left (a^2+b^2\right )^2 d^6} \\ \end{align*}
Time = 3.26 (sec) , antiderivative size = 848, normalized size of antiderivative = 0.74 \[ \int \frac {x^2}{\left (a+b \tan \left (c+d \sqrt {x}\right )\right )^2} \, dx=\frac {-\frac {i b \left (12 (a+i b) b (i a+b) d^5 x^{5/2}+4 a (a+i b) (i a+b) d^6 x^3+30 (a-i b) b d^4 \left (-i b \left (-1+e^{2 i c}\right )+a \left (1+e^{2 i c}\right )\right ) x^2 \log \left (1+\frac {(a+i b) e^{-2 i \left (c+d \sqrt {x}\right )}}{a-i b}\right )+12 a (a-i b) d^5 \left (-i b \left (-1+e^{2 i c}\right )+a \left (1+e^{2 i c}\right )\right ) x^{5/2} \log \left (1+\frac {(a+i b) e^{-2 i \left (c+d \sqrt {x}\right )}}{a-i b}\right )+15 (a-i b) b \left (-i b \left (-1+e^{2 i c}\right )+a \left (1+e^{2 i c}\right )\right ) \left (4 i d^3 x^{3/2} \operatorname {PolyLog}\left (2,\frac {(-a-i b) e^{-2 i \left (c+d \sqrt {x}\right )}}{a-i b}\right )+6 d^2 x \operatorname {PolyLog}\left (3,\frac {(-a-i b) e^{-2 i \left (c+d \sqrt {x}\right )}}{a-i b}\right )-6 i d \sqrt {x} \operatorname {PolyLog}\left (4,\frac {(-a-i b) e^{-2 i \left (c+d \sqrt {x}\right )}}{a-i b}\right )-3 \operatorname {PolyLog}\left (5,\frac {(-a-i b) e^{-2 i \left (c+d \sqrt {x}\right )}}{a-i b}\right )\right )+15 a (a-i b) \left (-i b \left (-1+e^{2 i c}\right )+a \left (1+e^{2 i c}\right )\right ) \left (2 i d^4 x^2 \operatorname {PolyLog}\left (2,\frac {(-a-i b) e^{-2 i \left (c+d \sqrt {x}\right )}}{a-i b}\right )+4 d^3 x^{3/2} \operatorname {PolyLog}\left (3,\frac {(-a-i b) e^{-2 i \left (c+d \sqrt {x}\right )}}{a-i b}\right )-6 i d^2 x \operatorname {PolyLog}\left (4,\frac {(-a-i b) e^{-2 i \left (c+d \sqrt {x}\right )}}{a-i b}\right )-6 d \sqrt {x} \operatorname {PolyLog}\left (5,\frac {(-a-i b) e^{-2 i \left (c+d \sqrt {x}\right )}}{a-i b}\right )+3 i \operatorname {PolyLog}\left (6,\frac {(-a-i b) e^{-2 i \left (c+d \sqrt {x}\right )}}{a-i b}\right )\right )\right )}{d^6 \left (b-b e^{2 i c}-i a \left (1+e^{2 i c}\right )\right )}+\frac {(a-i b)^2 (a+i b) x^3 (a \cos (c)-b \sin (c))}{a \cos (c)+b \sin (c)}+\frac {6 (a-i b)^2 (a+i b) b^2 x^{5/2} \sin \left (d \sqrt {x}\right )}{d (a \cos (c)+b \sin (c)) \left (a \cos \left (c+d \sqrt {x}\right )+b \sin \left (c+d \sqrt {x}\right )\right )}}{3 (a-i b)^3 (a+i b)^2} \]
[In]
[Out]
\[\int \frac {x^{2}}{\left (a +b \tan \left (c +d \sqrt {x}\right )\right )^{2}}d x\]
[In]
[Out]
\[ \int \frac {x^2}{\left (a+b \tan \left (c+d \sqrt {x}\right )\right )^2} \, dx=\int { \frac {x^{2}}{{\left (b \tan \left (d \sqrt {x} + c\right ) + a\right )}^{2}} \,d x } \]
[In]
[Out]
\[ \int \frac {x^2}{\left (a+b \tan \left (c+d \sqrt {x}\right )\right )^2} \, dx=\int \frac {x^{2}}{\left (a + b \tan {\left (c + d \sqrt {x} \right )}\right )^{2}}\, dx \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 4345 vs. \(2 (928) = 1856\).
Time = 1.39 (sec) , antiderivative size = 4345, normalized size of antiderivative = 3.79 \[ \int \frac {x^2}{\left (a+b \tan \left (c+d \sqrt {x}\right )\right )^2} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {x^2}{\left (a+b \tan \left (c+d \sqrt {x}\right )\right )^2} \, dx=\int { \frac {x^{2}}{{\left (b \tan \left (d \sqrt {x} + c\right ) + a\right )}^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {x^2}{\left (a+b \tan \left (c+d \sqrt {x}\right )\right )^2} \, dx=\int \frac {x^2}{{\left (a+b\,\mathrm {tan}\left (c+d\,\sqrt {x}\right )\right )}^2} \,d x \]
[In]
[Out]